package com.wbl.tijiancms.response;

public class TijianException extends RuntimeException{  //不用try-catch的异常类型

    private Integer status;  //异常的编码

    private String desc; //异常的描述信息

    public TijianException(Integer status,String desc){
        this.desc=desc;
        this.status=status;
    }

    public TijianException(){

    }

    public TijianException(TijianExceptionEnum exceptionEnum){
        this.desc=exceptionEnum.getDesc();
        this.status=exceptionEnum.getStatus();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
